package com.ha.mapper;

import com.ha.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: NewsMapper
 * Package: com.ha.mapper
 * Description:
 *
 * @Author 那啥啥
 * @Create 2024/5/3  22:43
 * @Version 1.0
 */
@Mapper
public interface NewsMapper {


    @Select("select *from news limit 0,10")
    List<News> getNews();
}
